package com.czh.oss.adapter.impl;

import com.czh.oss.adapter.StorageAdapter;
import com.czh.oss.entity.FileInfo;
import org.springframework.web.multipart.MultipartFile;

import java.io.InputStream;
import java.util.LinkedList;
import java.util.List;

/**
 * @author caozaihui
 * @version 1.0
 * @since 2024/8/17 下午 12:19
 */
//@Service
public class AliStorageAdapter implements StorageAdapter {
    @Override
    public void createBucket(String bucketName) {

    }

    @Override
    public void uploadObject(MultipartFile multipartFile, String bucketName, String objectName) {

    }

    @Override
    public List<String> getAllBuckets() {
        LinkedList<String> strings = new LinkedList<>();
        strings.add("aliyun");
        return strings;
    }

    @Override
    public List<FileInfo> getAllObjects(String bucketName) {
        return null;
    }

    @Override
    public InputStream getObject(String bucketName, String objectName) {
        return null;
    }

    @Override
    public String getUrl(String bucketName, String objectName) {
        return null;
    }

    @Override
    public void deleteBucket(String bucketName) {

    }

    @Override
    public void deleteObject(String bucketName, String objectName) {

    }
}
